﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AAA.Meta.Trade.Data
{
    [Serializable]
    public class AccountInfo
    {
        //帳號類別
        private string _strAccountType;
        //帳號
        private string _strAccountNo;
        //姓名
        private string _strAccountName;
        //身份證號
        private string _strIdNo;
        //密碼
        private string _strPassword;
        //CA的路徑
        private string _strCAPath;
        //CA的密碼
        private string _strCAPassword;
        //登入主機位址
        private string _strLoginHost;
        //券商下單主機位址
        private string _strHost;
        //連接key值(連線後由主機回覆, 連線不重新登入, 認證使用, 需券商有提供)
        private object _oIdentifyKey;
        //券商下單主機port
        private int _iPort;
        //交易訊息
        private string _strMessage;
        //期貨商
        private string _strBranch;

        public string AccountType
        {
            get { return _strAccountType; }
            set { _strAccountType = value; }
        }

        public string AccountNo
        {
            get { return _strAccountNo; }
            set { _strAccountNo = value; }
        }

        public string AccountName
        {
            get { return _strAccountName; }
            set { _strAccountName = value; }
        }

        public string IdNo
        {
            get { return _strIdNo; }
            set { _strIdNo = value; }
        }

        public string Password
        {
            get { return _strPassword; }
            set { _strPassword = value; }
        }

        public string CAPath
        {
            get { return _strCAPath; }
            set { _strCAPath = value; }
        }

        public string CAPassword
        {
            get { return _strCAPassword; }
            set { _strCAPassword = value; }
        }

        public string LoginHost
        {
            get { return _strLoginHost; }
            set { _strLoginHost = value; }
        }

        public string Host
        {
            get { return _strHost; }
            set { _strHost = value; }
        }

        public int Port
        {
            get { return _iPort; }
            set { _iPort = value; }
        }

        public object IdentifyKey
        {
            get { return _oIdentifyKey; }
            set { _oIdentifyKey = value; }
        }

        public string Message
        {
            get { return _strMessage; }
            set { _strMessage = value; }
        }

        public void AppendMessage(string strMessage)
        {
            _strMessage += strMessage;
        }


        public string Branch
        {
            get { return _strBranch; }
            set { _strBranch = value; }
        }

    }
}
